package com.monika.main.system.exception;


import org.springframework.security.core.AuthenticationException;

/**
 * Author whh
 * Date 2023/04/17/ 21:20
 * <p></p>
 */
public class UserPasswordRetryExceedException extends AuthenticationException {

    private int maxRetryCount;

    private int lockTime;

    public UserPasswordRetryExceedException(String explanation, int maxRetryCount, int lockTime) {
        super(explanation);
        this.maxRetryCount = maxRetryCount;
        this.lockTime = lockTime;
    }

    public int getMaxRetryCount() {
        return maxRetryCount;
    }

    public int getLockTime() {
        return lockTime;
    }
}
